package Service.ServiceImpl;

import Dao.DaoImpl.RepairDaoImpl;
import Dao.RepairDao;
import Service.RepairService;
import domain.Repair;

import java.util.HashMap;
import java.util.List;

public class RepairServiceImpl implements RepairService {
    private RepairDao dao = new RepairDaoImpl();
    @Override
    public List<Repair> fuzzySelectRepqir(HashMap<String, String> map) {
        return dao.fuzzySelectRepqir(map);
    }

    @Override
    public List<Repair> repairList() {
        return dao.repairList();
    }

    @Override
    public Repair selectRepairById(String id) {
        return dao.selectRepairById(id);
    }

    @Override
    public void updateRepair(Repair repair) {
        dao.updateRepair(repair);
    }

    @Override
    public void deleteRepair(String id) {
        dao.deleteRepair(id);
    }

    @Override
    public void addRepair(Repair repair) {
        dao.addRepair(repair);
    }

    @Override
    public void updateIsFinish(int id,String checkPeo, String flag) {
        dao.updateIsFinish(id,checkPeo,flag);
    }

    @Override
    public List<Repair> showNotReadRepair() {
        return dao.showNotReadRepair();
    }
}
